home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 4
/
CDPD_IV.bin
/
e
/
mailinglists
/
amigae.0793july.archive
/
000052_crash!UNCA.EDU!JVANRIPER_Thu, 22 Jul 93 11:42:28 PST.msg
< prev
next >
Wrap
Internet Message Format
|
1994-05-26
|
3KB
Received: by bkhouse.cts.com (V1.16/Amiga)
id AA00000; Thu, 22 Jul 93 11:42:28 PST
Received: from uncavx by crash.cts.com with smtp
(Smail3.1.28.1 #15) id m0oJ5CS-0000XbC; Thu, 22 Jul 93 11:17 PDT
Received: from UNCA.EDU by UNCA.EDU (PMDF V4.2-11 #3902) id
<01H0UFUYW8RK8WWL6A@UNCA.EDU>; Thu, 22 Jul 1993 14:03:30 EDT
Date: Thu, 22 Jul 1993 14:03:30 -0400 (EDT)
Message-id: <01H0UFUYX1PE8WWL6A@UNCA.EDU>
Organization: University of North Carolina at Asheville
X-VMS-To: IN%"amigae@bkhouse.cts.com"
MIME-version: 1.0
Content-type: TEXT/PLAIN; CHARSET=US-ASCII
Content-transfer-encoding: 7BIT
From: "Joseph E. Van_Riper III" <JVANRIPER@UNCA.EDU>
To: amigae@bkhouse.cts.com
Subject: Path Madness from Hell
I've been looking through the Includes and Autodocs for an easy
solution to my problem, but it looks hopeless. Maybe one of you guys know
something I don't.
I'm trying to write a program that may be called from either WB or CLI.
I suppose, since I'm more familiar with working from the CLI, I find it easier
to program with that in mind.. certainly, there are less hassles <grin>.
I want my program to call another program, with an argument, and print
any text it should decide to print to stdout. I am keeping in mind that, from
the WB, I have to WriteF('') to create a stdout for the program to use.
Oddly enough, I/O is NOT my problem. My problem is in determining a
path through which to search for the command.
When run from CLI, the CLI's current path settings is passed to the new
process with either SystemTagList() or Execute() (note: I prefer SystemTagList
by far... much more flexibility than Execute, although it appears that Execute
works better with WB).
But, when run from WB, the current path settings are NOT transferred to
the program (perhaps because Workbench doesn't have path settings, and can
therefore not give them to the process).
As a result, any user who decides to use my program MUST specify an
exact path to the command they want to run in the tooltypes... they cannot rely
on a path to make things easier for them. I find it somewhat difficult to
believe that there is no way to get a path from WorkBench; how does WB manage
to find commands specified in the icon (eg: if I have an icon with a default
tool of "amigaguide", it figures out that my copy of amigaguide is in the
sys:utilities directory, yet if my program, when run from workbench, tries to
Execute() or SystemTagList() 'amigaguide', it cannot figure out that the
command is in the sys:utilities directory).
Any suggestions, or am I actually going to have to do a FindCli search
from 1 to MaxCli(), finding a CLI running Workbench, then peek into its path
thingy (ugly ugly ugly.. I don't wanna do it <bawl>)?
- Trey